from http.server import HTTPServer
from lib.req.request import Request
from lib.utils.print_util import PrintUtil


class RequestServer:

    @staticmethod
    def start(host, port):
        _host = (host, port)
        PrintUtil.start("Starting server, listen at: %s:%s" % _host)
        server = HTTPServer(_host, Request())
        server.serve_forever()

